<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@page import="java.util.List"%>
<%@page import="com.entity.ziduan"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
<script src="http://how2j.cn/study/js/jquery/2.0.0/jquery.min.js"></script>
<link href="http://how2j.cn/study/css/bootstrap/3.3.6/bootstrap.min.css" rel="stylesheet">
<script src="http://how2j.cn/study/js/bootstrap/3.3.6/bootstrap.min.js"></script>

<style>
  #mianban{
      width: 1000px;
      margin: 0 auto;
  }



</style> 
</head>
<body>
  
<div class="panel panel-info" id="mianban">
        <div class="panel-heading">表内数据如下</div>
        <div class="panel-body" >
            <table class="table table-striped" >
                <thead>
                
                <c:forEach items="${ziduans}" var="zi">
                 <th>${zi.ziduanname}</th>
                </c:forEach>
                </thead>
                <tbody>
                <c:forEach items="${tcontent}" var="ir">
                  <tr>
                     <c:forEach items="${ziduans}" var="id">
                     <td >${ir.get(id.ziduanname)}</td> 
                     </c:forEach>
                   </tr>
                </c:forEach>
                </tbody>
              </table>
              <div style="margin:0 auto;text-align: center">
              <button type="button" class="btn btn-primary" ><a href="${pageContext.request.contextPath}/list.action" style="color: white; text-decoration: none">返回主页</a></button>
              <button type="button" class="btn btn-success" onclick="insertn"><a href="${pageContext.request.contextPath}/inserttable.action?tablename=${tablename}" style="color: white; text-decoration: none">插入数据</a></button>
             </div> 
                 
        </div>
      </div> 
   
     <nav class="navbar navbar-default navbar-fixed-bottom">
<div style="text-align:center">
 版权所有
</div>
</nav>

</body>
</html>